﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace Obra.SmugMug.Api
{
    [ServiceContract]
    [XmlSerializerFormat]
    public interface ISmugMugCategories
    {
        [OperationContract]
        [WebGet(UriTemplate = UriTemplates.Categories.Get)]
        List<CategoryContract> GetCategories(
            string sessionId);

        [OperationContract]
        [WebGet(UriTemplate = UriTemplates.Categories.Create)]
        void CreateCategory(
            string sessionId,
            string name);

        [OperationContract]
        [WebGet(UriTemplate = UriTemplates.Categories.Delete)]
        void DeleteCategory(
            string sessionId,
            int categoryId);

        [OperationContract]
        [WebGet(UriTemplate = UriTemplates.Categories.Rename)]
        void RenameCategory(
            string sessionId,
            int categoryId,
            string name);

    }
}
